package yevgeniy.melnichuk.selenium.worker;

import com.thoughtworks.selenium.Selenium;

public class ClickAndWaitSeleniumWorker extends SeleniumWorker {
	String q;
	int sek;

	public ClickAndWaitSeleniumWorker(Selenium selenium, String q, int sek) {
		super(selenium);

		this.q = q;
		this.sek = sek;
	}

	@Override
	public void run() {
		selenium.click(q);
		selenium.waitForPageToLoad(Integer.toString(sek * 1000));
	}
}
